<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    {{mag}}
    <h1>{{ web.title }}</h1>
    <h1>{{ web.url }}</h1>
    <h1>{{number}}</h1>
  </div>

  <script type="module">
    import { createApp, reactive, ref } from './vue.esm-browser.js'
    createApp({
      //setup选项 用于设置响应式数据和方法等
      setup() {
        // const number = ref(10)
        const number = ref([1., 20, 30])
        number.value = [1, 2]
        const web = reactive({
          title: "熊哥编程",
          url: "xiongge.com"
        })
        web.url = 'xionghao1.com'
        return {
          mag: "success1",
          number,
          web
        }
      }
    }).mount("#app")
  </script>
</body>

</html>